<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Todo</title>
    <link rel="stylesheet" href="../sea-modules/examples/todo/1.0.0/base.css">
</head>
<body>
<section id="todoapp">
    <header id="header">
        <h1>todos</h1>
        <input id="new-todo" placeholder="What needs to be done?" autofocus>
    </header>
    <section id="main">
        <input id="toggle-all" type="checkbox">
        <label for="toggle-all">Mark all as complete</label>
        <ul id="todo-list"></ul>
    </section>
    <footer id="footer"></footer>
</section>
<footer id="info">
    <p>Double-click to edit a todo</p>

    <p>Originated by <a href="https://github.com/addyosmani">Addy Osmani</a></p>

    <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>

    <p>Modified by <a href="http://www.linkgod.net">LinkGod</a> in March 2013</p>
</footer>
<script type="text/template" id="item-template">
    <div class="view">
        <input class="toggle" type="checkbox" <%= completed ? 'checked' : '' %>>
        <label><%- title %></label>
        <button class="destroy"></button>
    </div>
    <input class="edit" value="<%- title %>">
</script>
<script type="text/template" id="stats-template">
    <span id="todo-count"><strong><%= remaining %></strong> <%= remaining === 1 ? 'item' : 'items' %> left</span>
    <ul id="filters">
        <li>
            <a class="selected" href="#/">All</a>
        </li>
        <li>
            <a href="#/active">Active</a>
        </li>
        <li>
            <a href="#/completed">Completed</a>
        </li>
    </ul>
    <% if (completed) { %>
    <button id="clear-completed">Clear completed (<%= completed %>)</button>
    <% } %>
</script>

<script src="../sea-modules/seajs/seajs/2.2.1/sea.js"></script>
<script>

    // Set configuration
    seajs.config({
        base: "../sea-modules/",
        alias: {
            "$": "jquery/jquery/1.10.1/jquery.js",
            "$-debug": "jquery/jquery/1.10.1/jquery-debug.js",
            "underscore": "gallery/underscore/1.6.0/underscore.js",
            "underscore-debug": "gallery/underscore/1.6.0/underscore-debug.js",
            "backbone": "gallery/backbone/1.1.0/backbone.js",
            "backbone-debug": "gallery/backbone/1.1.0/backbone-debug.js"
        }
    });

    // For development
    if (location.href.indexOf("?dev") > 0) {
        seajs.use("examples/todo/1.0.0/main-debug");
    }
    // For production
    else {
        seajs.use("examples/todo/1.0.0/main");
    }
</script>

</body>
</html>
